package com.zhima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhima.entity.OjQuestionBindBank;
import com.zhima.vo.QuestionBankContestEditQuestionVO;
import com.zhima.vo.QuestionTableVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhima
 * @since 2023-08-25
 */
public interface OjQuestionBindBankService extends IService<OjQuestionBindBank> {

    List<QuestionTableVO> queryQuestionsByQuestionBankId(Long questionBankId);

    boolean bindQuestionToBank(Long userId, OjQuestionBindBank questionBindBank);

    List<QuestionBankContestEditQuestionVO> queryQuestionBankSimpleQuestion(Long questionBankId);

    boolean changeQuestionIndex(Long questionBankId, String[] afterSequence);

    boolean unbindQuestionToBank(Long userId, Long questionBankId, Integer questionIndex);
}
